'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/my', controller.my.index);
  router.get('/getGirls', controller.my.getGirls);
  // 自由传参模式
  // http://localhost:7001/missYou?name=2
  router.get('/missYou', controller.my.missYou);
  // 严格传参模式
  //请求http://localhost:7001/missMe/asas/12
  router.get('/missMe/:id/:age', controller.my.missMe);
  router.post('/learnPost', controller.my.learnPost);
  router.get('/getUserList', controller.my.getUserList);
};
